package com.zy.chat.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;

@Data
@TableName(value = "single_messages")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class SingleMessages implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private  String fromUser;

    private  String toUser;

    private String content;

//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @TableField(fill = FieldFill.INSERT)
    private String sendTime;

    private String type;

    private String status;

    private  String chattype;


}
